<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .red{
            color: red;
        }
        .big{
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
  <div id="app">
      <div :class="className" style="border: 1px hotpink solid">低大悲</div>
  </div>
</body>
<script src="./js/vue.js"></script>
<script>
    /*如果v-bind和class结合使用; class的值可以有三种选择
        字符串 : "red"
        对象 : {red:true}
        数组 : [字符串,对象]
     */
    new Vue({
        el:"#app",
        data:{
            className:["big",{red:true}]
        }
    });
</script>
</html>